package com.niubi.yygh.hosp.service.impl;



import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.niubi.yygh.hosp.mapper.HospitalSetMapper;
import com.niubi.yygh.hosp.service.HospitalSetService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.niubi.yygh.model.hosp.HospitalSet;
import org.springframework.stereotype.Service;
/**
 * <p>
 * 医院设置表 服务实现类
 * </p>
 *
 * @author 牛俊杰
 * @since 2022-03-11
 */
@Service
public class HospitalSetServiceImpl extends ServiceImpl<HospitalSetMapper, HospitalSet> implements HospitalSetService {


  @Override
  public String getSignKey(String hoscode) {
    HospitalSet hospset = baseMapper.selectOne(new QueryWrapper<HospitalSet>().eq("hoscode", hoscode));
    return hospset.getSignKey();
  }
}
